package com.esteel.settlement.entity;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the TB_SETT_ACCOUNT database table.
 * 
 */
@Embeddable
public class TbSettAccountPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	private String custAcctId;

	private String thirdCustId;

	public TbSettAccountPK() {
	}
	

	public String getCustAcctId() {
		return custAcctId;
	}


	public void setCustAcctId(String custAcctId) {
		this.custAcctId = custAcctId;
	}


	public String getThirdCustId() {
		return thirdCustId;
	}


	public void setThirdCustId(String thirdCustId) {
		this.thirdCustId = thirdCustId;
	}


	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TbSettAccountPK)) {
			return false;
		}
		TbSettAccountPK castOther = (TbSettAccountPK)other;
		return 
			this.custAcctId.equals(castOther.custAcctId)
			&& this.thirdCustId.equals(castOther.thirdCustId);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.custAcctId.hashCode();
		hash = hash * prime + this.thirdCustId.hashCode();
		
		return hash;
	}
}